import request from '@/utils/request'

// 查询基因列表
export function getGeneList(query) {
  return request({
    url: '/gene-face/gene/list',
    method: 'get',
    params: query
  })
}

// 查询基因详细
export function getGene(id) {
  return request({
    url: '/gene-face/gene/' + id,
    method: 'get'
  })
}

// 新增基因
export function addGene(data) {
  return request({
    url: '/gene-face/gene',
    method: 'post',
    data: data
  })
}

// 修改基因
export function updateGene(data) {
  return request({
    url: '/gene-face/gene',
    method: 'put',
    data: data
  })
}

// 删除基因
export function delGene(id) {
  return request({
    url: '/gene-face/gene/' + id,
    method: 'delete'
  })
}

// 导出基因
export function exportGeneList(query) {
  return request({
    url: '/gene-face/gene/export',
    method: 'get',
    params: query
  })
}
